import request from "@/utils/request";

export function getData(params) {
  return request({
    url: `/room/background-image`,
    method: "get",
    params
  });
}

export function postData(data) {
  return request({
    url: `/room/background-image`,
    method: "post",
    data
  });
}

export function putData(id, data) {
  return request({
    url: `/room/background-image/${id}`,
    method: "put",
    data
  });
}

export function deleteData(ids) {
  return request({
    url: `/room/background-image`,
    method: "delete",
    data: { ids }
  });
}

export function postSendData(data) {
  return request({
    url: `/room/background-image/give`,
    method: "post",
    data
  });
}

export function getLogData(params) {
  return request({
    url: `/room/background-image/buy_log`,
    method: "get",
    params
  });
}
